<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="/rp/common/taglib.jsp" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <base href="<%=basePath%>">
    
    <title>选择目标栏目</title>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8" />
	
	<script src="rp/scripts/boot.js" type="text/javascript"></script>
	
	<style type="text/css">
	   	
    </style>
	
  </head>
  
  <body class="body-fit">
  	
  	<div class="mini-fit">
	  	<ul id="channelTree" class="mini-tree" url="" style="width:100%; height: 100%;"
		    showTreeIcon="true" textField="name" idField="id" parentField="pid" resultAsTree="false"
		    showRadioButton="true" onnodeselect=""/>
	</div>
	
	<div class="mini-toolbar" style="padding: 5px;" borderStyle="border:0;">
        <a class="mini-button" style="width:60px;" onclick="onOk()">确定</a>
        <a class="mini-button" style="width:60px;" onclick="onCancel()">取消</a>
    </div>
  	
	<script type="text/javascript">
		$(function(){
			
		});
		
		function initDc(_dbType,_url,_username,_password){
			var channelTree = mini.get("channelTree");
			channelTree.load("rp/system/baseData/getTargetChannels?dbType="+_dbType+"&url="+_url+"&username="+_username+"&password="+_password);
		}
		
		function getSelectData(){
			var tree = mini.get("channelTree");
            var node = tree.getSelectedNode();
            return node;
		}
		
		//////////////////////////////////
	    function closeWindow(action) {
	        if (window.CloseOwnerWindow) return window.CloseOwnerWindow(action);
	        else window.close();
	    }

	    function onOk() {
	    	closeWindow("ok");
	    }
	    function onCancel() {
	    	closeWindow("cancel");
	    }
	</script>
  </body>
</html>
